package com.wzx.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/9/7 - 14:36
 * @description 标题
 */
@Data
@TableName("t_shop_address")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ShopAddress", description = "地址分类")
public class ShopAddress {

    @TableId(value = "addressId", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer addressId;

    @TableField("userId")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @TableField("address")
    @ApiModelProperty(value = "地址")
    private String address;

    @TableField("name")
    @ApiModelProperty(value = "收件者姓名")
    private String name;

    @TableField("phone")
    @ApiModelProperty(value = "收件号")
    private String phone;

    @TableField("isDefault")
    @ApiModelProperty(value = "是否为默认地址（1：默认 0：非默认）")
    private String isDefault;

    @TableField("accuracy")
    @ApiModelProperty(value = "精度")
    private String accuracy;

    @TableField("latitude")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    @TableField("detailAddress")
    @ApiModelProperty(value = "详情地址")
    private String detailAddress;

}
